<?php
/* @var $this MaterialController */
/* @var $model Material */

$this->breadcrumbs=array(
	'Materials'=>array('index'),
	$model->id,
);

$this->menu=array(
	array('label'=>'List Material', 'url'=>array('index')),
	array('label'=>'Create Material', 'url'=>array('create')),
	array('label'=>'Update Material', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Material', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Material', 'url'=>array('admin')),
);
?>

<h1>View Material #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		array(
			'name'=>'tipo_id',
			'value'=>CHtml::encode($model->getTipoText()),
		),
		array(
			'name'=>'marca_id',
			'value'=>CHtml::encode($model->getMarcaText()),
		),
		array(
			'name'=>'modelo_id',
			'value'=>CHtml::encode($model->getModeloText()),
		),
		array(
			'name'=>'proyecto_id',
			'value'=>CHtml::encode($model->getProyectoText()),
		),
		array(
			'name'=>'ubicacion_id',
			'value'=>CHtml::encode($model->getUbicacionText()),
		),
		'cantidad',
		//'id',
	),
)); ?>
